package com.zlj.jdbc.transfer.jdbcUtils03;

import java.sql.SQLException;

import org.apache.commons.dbutils.QueryRunner;

/**
 * 转账功能
 * @author bashen
 *
 */
public class AccountDao {
	
	public static void update(String name, double money) throws SQLException {
		QueryRunner runner = new TxQueryRunner();
		String sql = "update account set balance = balance + ? where name = ?";
		Object[] params = {money,name};
		runner.update(sql, params);
	}
}
